﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Бизнес система. Комплексные решения</title>
    <style type="text/css">
	* {margin:0; padding:0;}

html {
	font: 90%/1.3 arial,sans-serif;
	padding:1em;
	background:#fafafa;
}
form {
	background:#fff;
	padding:1em;
	border:1px solid #eee;
}

fieldset div {
	margin:0.3em 0;
	clear:both;
}
form {
	margin:1em;
	width:27em;
}
label {
	float:left;
	width:10em;
	text-align:right;
	margin-right:1em;
}
legend {
	color:#0b77b7;
	font-size:1.2em;
}
legend span {
	width:10em;
	text-align:right;
}
input {
	padding:0.15em;
	width:15em;
	border:1px solid #ddd;
	background:#fafafa;
	font:bold 0.95em arial, sans-serif;
	-moz-border-radius:0.4em;
	-khtml-border-radius:0.4em;
}
input:hover, input:focus {
	border-color:#c5c5c5;
	background:#f6f6f6;
} 
fieldset {
	border:1px solid #ddd;
	padding:0 0.5em 0.5em;
}

input.default {
	color:#bbb;
}
a
{
	text-decoration:none;
}


#submit-go {
background:none repeat scroll 0 0 #555555;
border:1px solid #333333;
color:#FFFFFF;
font-size:100%;
padding:2px 1em;
}

.registerhref {
background:none repeat scroll 0 0 #0b77b7;
border:1px solid #333333;
color:#FFFFFF;
font-size:100%;
padding:2px 1em;
}

    </style>
</head>
<body  style="height:100%">
    <center>
    
  <div style="height:10em"></div>

    <%using (Html.BeginForm("TryGetUser", "Login"))
  { %>    
            <% if (this.ViewData["MessageField"]!=null) { %>
   <div style="color:#ff0084"><%=this.ViewData["MessageField"] %></div>
   <% } %>
    <fieldset class="login">
			<legend>Вход</legend>
			<div >
				<label for="username">Имя пользователя</label> <input type="text" id="username" name="username"/>

			</div>
			<div>
				<label for="password">Пароль</label> <input type="password" id="password" name="password"/>
			</div>			
			<div style="text-align:right">
				<input type="hidden" value="<%=this.Request["ReturnUrl"] %>" name="returnURL" />
                <button type="submit" id="submit-go">Войти</button>
			</div>
            <hr style="color:#c5c5c5"/>
            <br/>
            <div style="text-align:left">    
            <a href="/Login/Register" class="registerhref"> Регистрация</a>
             <a href="/Login/ForgetPassword" class="registerhref"> Напомнить пароль</a>
             </div>
		</fieldset>
        <%} %>
        
    </center>
</body>
</html>
